class CancellationMailer < ActionMailer::Base
  default from: "info@autokool.ee"

  def cancellation_email(cancellation_report)
    @student = cancellation_report.student
    @user = @student.user
    @cancellation_report = cancellation_report
    mail(:to => @user.email, :subject => "Notification of cancelled lesson")
  end
end
